<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <?php $siteName = cr('cmsConfig.Backend.siteName');?>
    <?php echo $html->
charset(); ?>
    <title>
      
      <?php
//use title set for title tag only.else generated title.
$pageTitle = $this->
getVar('pageTitleTag');
if(strlen($pageTitle) == 0)
{
$pageTitle = $title_for_layout;
}
?>
    <?php echo $siteName;?>
    :: 
    <?php echo $pageTitle;?>
    </title>
    
    <script>
      var URL='<?php echo Configure::read("cmsConfig.Backend.siteUrl");?>/';
      var ErrorMsg = <?php echo $encodedErrorMsgs?>;
    </script>
    <?php
echo $javascript->
link(array('/js/jquery-1.7.2.min','/cms/js/main.js','/js/main.js','/cms/js/jquery.cookie.js'));
echo $html->
meta('icon');
echo $html->
meta('keywords',$this->
getVar('metaKeywords'));
echo $html->
meta('description',$this->
getVar('metaDescription'));
echo $html->
defaultCss(array('/cms/css/mod','/cms/css/mod_skins'));

echo $html->
css('fonts');
echo $html->
css('font-awesome');
echo $html->
css('common');
echo $html->
css('fonts');
echo $html->
css('bootstrap');
echo $html->
css('bootstrap-theme');
echo $html->
css('style');
echo $html->
css('responsive');
echo $javascript->
getCompressedJs();
echo $scripts_for_layout;
echo $html->
getCompressedCss();
echo $startup_js;

$metaCanonicalUrl = $this->
getVar('metaCanonicalUrl');
if($metaCanonicalUrl)
{
echo $html->
meta(array('rel'=>
'canonical'),null,array('link'=>
Configure::read("cmsConfig.Backend.siteUrl").$metaCanonicalUrl));
}
?>
    <!--[if IE]>

<?php echo $html->
css('IE');?>

<![endif]-->
    
    <script type="text/javascript" src="
<?php echo $html->
url("/themed/modern/js/script.js");
?>">
    </script>
    <script type="text/javascript" src="
<?php echo $html->
url("/themed/modern/js/bootstrap.min.js");
?>">
    </script>
    <script type="text/javascript">
      
      $(document).ready(function() {
        $(".sign_in .sign_btn_1").click(function (e) {
          e.preventDefault();
          
          $(".sign_in .sign_up_box").slideToggle(300);
          if($(this).hasClass("done")) {
            
            $(this).removeClass("done");
          }
          else {
            
            $(this).addClass("done");
          }
        }
                                       );
        
        $(".more").click(function (e) {
          e.preventDefault();
          
          $(".ddbox").slideToggle(300);
          if($(this).hasClass("done")) {
            
            $(this).removeClass("done");
          }
          else {
            
            $(this).addClass("done");
          }
        }
                        );
      }
                       );
      
    </script>
  </head>
  
  
  
  <body>
    <div id="header">
      <div class="container">
        
        <div class="logo">
          <?php 
echo $this->
element('site_logo');
?>
        </div>
        
        <div class="head_right">
          <?php
if(isset($section))
{
echo $section->
render('header_right');
}
?>
             
        </div>
      </div>
    </div>
    <?php echo $this->
element('navigation_links');?>
    
    
    <div class="location_bar">
      <?php
if(isset($section))
{
echo $section->
render('location_bar');
}
?>
    
    </div>
    <div id="content">
      <div class="container">
        <?php 
if(!isset($breadCrumbVars))
{
$breadCrumbVars = array();
}                   
if(cr('GeneralConfig.enable_breadcrumb') == 1)
{
if(isset($breadCrumb))
{   
$breadCrumb->
breadCrumbElement = "bread_crumb_app";
echo $breadCrumb->
showFromPresentUrl();
}
}
?>
      
      <?php 
$session->
flash();  
?>
      
      <div class="row">
        <?php
if(isset($section))
{
echo $section->
render('outside');
}
?>
            <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
              <div id="leftbar">
                <?php if($this->
params['controller'] == "listings" && $this->
params['action'] == "view"){?>
                  <div class="page_sub_no_padd">
                    
                    <?php } ?>
                    
                    <?php if($this->
params['url']['url'] != "/"){?>
                        
                        <div class="page_sub">
                          
                          <?php } ?>
                          
                          
                          
                          
                          
                          <?php if((!isset($hideLayoutTitle) || $hideLayoutTitle != true) && $this->
pageTitle){?>
                            
                            <h2>
                              <?php echo $this->
pageTitle;?>
                            </h2>
                            <?php }?>
                            
                            <?php
if(isset($section))
{
echo $section->
render('top');
}
?>
                            
                            <?php echo $content_for_layout; ?>
                            <?php
if(isset($section))
{
echo $section->
render('bottom');
}
?>
                            
                            
                            
                            
                            
                            <?php if($this->
params['url']['url'] != "/"){?>
                            
                        </div>
                        
                        <?php } ?>
                        
                        <?php if($this->
params['controller'] == "listings" && $this->
params['action'] == "view"){?>
                  </div>
                  
                  <?php } ?>
                  
                </div>
            </div>
            
            
            
            <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12" id="rightbar">
              <?php
if(isset($section))
{
echo $section->
render('right_sidebar');
}
?>
                
            </div>
            
      </div>
      
    </div>
    </div>
    
    <div id="footer">
      <div class="container footer">
        <div class="social">
          <?php
if(isset($section))
{
echo $section->
render('footer_social');
}
?>
        
        
      </div>
      <div class="block_1">
        
        <?php
if(isset($section))
{
echo $section->
render('footer_first');
}
?>
      </div>
      <div class="block_1">
        
        <?php
if(isset($section))
{
echo $section->
render('footer_second');
}
?>
      </div>
      <div class="block_1">
        
        <?php
if(isset($section))
{
echo $section->
render('footer_third');
}
?>
      </div>
      <div class="block_1">
        
        <?php
if(isset($section))
{
echo $section->
render('footer_fourth');
}
?>
            
      </div>
      
      
      
      <div class="block_2">
        <?php
if(isset($section))
{
echo $section->
render('footer_fifth');
}
?>
      </div>
    </div>
    
    <div class="container copyright">
      <ul>
        <li>
          <a href="/pages/terms">
            Terms of Use
          </a>
        </li>
        <li>
          <a href="/pages/privacy-policy">
            Privacy Policy
          </a>
        </li>
        <li>
          <?php echo __('Copyright',true)?>
          
          <?php echo date("Y")?>
          
          <?php echo $siteName?>
          
        </li>
      </ul>
    </div>
    
    </div>
    
    
    
    <?php echo $cakeDebug; ?>
    
  </body>
</html>